
import React from 'react';
import {
  Switch,
  Route
} from 'react-router-dom';

import AppointTpl from './appoint_tpl';
import AccommodationTpl from './accommodation_tpl';
import AppointStepsView from './appoint_steps_tpl';

export const appointContainer = () => {// 住宿 pattern=0, 查看,  pattern=1  选择
  return <Switch>
    <Route path="/appoint/courses/:periodId?" component={AppointTpl} />
    <Route path="/appoint/accommodation/:pattern/:id" component={AccommodationTpl} />
    <Route path="/appoint/course/:periodId/:step" component={AppointStepsView} />
  </Switch>
}